package pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("work_plan")
public class Work {
    // 非数据库字段（仅用于业务逻辑，不映射数据库表）
    @TableField(exist = false)
    private Date mondayDay;
    @TableField(exist = false)
    private int mondayStatus;
    @TableField(exist = false)
    private Date tuesdayDay;
    @TableField(exist = false)
    private int tuesdayStatus;
    @TableField(exist = false)
    private Date wednesdayDay;
    @TableField(exist = false)
    private int wednesdayStatus;
    @TableField(exist = false)
    private Date thursdayDay;
    @TableField(exist = false)
    private int thursdayStatus;
    @TableField(exist = false)
    private Date fridayDay;
    @TableField(exist = false)
    private int fridayStatus;
    @TableField(exist = false)
    private Date saturdayDay;
    @TableField(exist = false)
    private int saturdayStatus;
    @TableField(exist = false)
    private Date sundayDay;
    @TableField(exist = false)
    private int sundayStatus;

    // 数据库映射字段
    @TableId
    private String day;          // 日期（主键）
    private String weekday;       // 星期几
    private int status;           // 状态
    private String createBy;      // 创建人
    private Date createTime;      // 创建时间（新增属性，用于数据库映射）
}